import axios from 'axios'

// 配置axios
axios.defaults.baseURL = '/api'

axios.defaults.headers = {
    'Content-Type': 'application/x-www-form-urlencoded'
}

// 请求拦截器
axios.interceptors.request.use((config) => {
    config.headers.face_token = window.sessionStorage.getItem('face_token')
    return config
})